package com.orange.wwwapi.controller.mallArea;

import com.orange.core.pojo.R;
import com.orange.core.pojo.entity.mallArea.vo.MallAreaFloorVO;
import com.orange.core.service.mallArea.MallAreaService;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>ClassName:MallAreaController</p>
 * <p>Description: 商场区域controller</p>
 * <p>Author: lwm</p>
 * <p>Date: 2025/5/24 16:57</p>
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/mallArea")
public class MallAreaController {

    private final MallAreaService mallAreaService;


    /**
     * 区域加楼层列表
     * @return
     */
    @GetMapping("/list")
    public R<List<MallAreaFloorVO>> mallAreaFloorList(){
        return R.ok(mallAreaService.mallAreaFloorList());
    }
}
